<template>
    <footer id="colophon" class="site-footer" role="contentinfo">
        <div class="site-info karma-footer">
            <div class="container">
                <div class="row">
                    <div class="sidebar-footer">
                        <aside class="widget widget_text col-sm-4">
                            <h2 class="widget-title">友情链接</h2>
                            <div class="textwidget">
                                <div>
                                    <p><a target="_blank"
                                          href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral"><img
                                            src="https://assets.yanghaha.vip/front/img/upyun_logos.png"
                                            width="140"/></a>
                                    </p>
                                    <div class="menu-footer-menu-container">
                                        <ul class="menu">
                                            <li v-for="(val,key) in common.link"
                                                class="menu-item menu-item-type-post_type menu-item-object-page">
                                                <a :href="val.url" target="_blank">{{ val.name }}</a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </aside>
                        <aside id="text-12" class="widget widget_text col-sm-4">
                            <h2 class="widget-title">快速链接</h2>
                            <div class="textwidget">
                                <div>
                                    <div class="menu-footer-menu-container">
                                        <ul id="menu-footer-menu" class="menu">
                                            <li v-if="common.author"
                                                class="menu-item menu-item-type-post_type menu-item-object-page">
                                                <a target="_blank"
                                                   href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=WW1paGxva2hpaRkoKHc6NjQ">联系->我</a>
                                            </li>
                                            <li v-else class="menu-item menu-item-type-post_type menu-item-object-page">
                                                <a target="_blank"
                                                   href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=WW1paGxva2hpaRkoKHc6NjQ">联系我!</a>
                                            </li>

                                            <li><a href="javascript:void(0);">昨天来访:{{ common.count_ip }}</a>
                                            </li>
                                            <a v-show="common?.setting?.icp" href="http://www.miitbeian.gov.cn"
                                               target="_blank">
                                                <dl v-html="common?.setting?.icp"></dl>
                                            </a>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </aside>
                        <aside id="text-11" class="widget widget_text col-sm-4">
                            <h2 class="widget-title">留言</h2>
                            <div class="textwidget">
                                <p>{{ common.msg }}</p>
                                <br/>
                            </div>
                        </aside>
                    </div>
                </div>
            </div>
            <div class="seperator"></div>
            <div class="container karma-post-footer">
                <div class="row">
                    <div class="col-sm-12 text-center">
                        <p>
                            <a href="javascript:void(0);" style="text-align:center">
                                <template v-if="common?.setting?.copyright">{{ common?.setting?.copyright }}</template>
                                <template v-else>版权所有，保留一切权利！ © 2016-2018 YangHaHa博客</template>
                                <i class="fa fa-heart love"></i>
                            </a>
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </footer>
</template>

<script>
    export default {
        name: "Footer",
        data: function () {
            return {};
        },
        props: ['common'],
    }
</script>

<style scoped>

</style>